<html><head><title>SetCurrentDirectory</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">SetCurrentDirectory()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#006666"><b>SetCurrentDirectory</b></font>(Directory$)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Changes the current directory for the program. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>Directory$</i></td>
<td width="90%"> 
The full path to the new current directory, or a path relative to the existing current directory. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Returns nonzero if the current directory has been successfully changed, return zero otherwise. 

</blockquote><p><b>Remarks</b></p><blockquote>

All files accesses are relative to this directory, when 
no absolute path is specified. To get the current directory, use <a href="getcurrentdirectory.html">GetCurrentDirectory()</a>. 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="getcurrentdirectory.html">GetCurrentDirectory()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=renamefile.html>RenameFile()</a> - <a href=index.html>FileSystem Index</a> - <a href=setfileattributes.html>SetFileAttributes()</a> -></body></html>